package design.pattern.Strategy;

public class BMW320 implements Strategy {

    @Override
    public void run() {
        System.out.println("省略10000行代码");
        System.out.println("BMW320 低速行驶");
    }
}



  
 class BMW523   implements Strategy {


     @Override
     public void run() {
         System.out.println("省略10000行代码");
         System.out.println("BMW320 中速行驶");
     }
 }

 class BMWX5  implements Strategy{

     @Override
     public void run() {
         System.out.println("省略10000行代码");
         System.out.println("BMW320 高速行驶");
     }
 }
